package org.ru.mse10.cvis.entity.cv;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.ru.mse10.cvis.entity.misc.Identity;

/**
 * The Class LanguageSkill.
 */
@Entity
@Table(name = "language_skill")
public class LanguageSkill extends Identity {

	/** The language. */
	private String language;

	/** The reading level. */
	private Byte readingLevel;

	/** The speaking level. */
	private Byte speakingLevel;

	/** The writing level. */
	private Byte writingLevel;

	/** The cv data. */
	private CvData cvData;

	/**
	 * Gets the language.
	 * 
	 * @return the language
	 */
	public String getLanguage() {
		return language;
	}

	/**
	 * Sets the language.
	 * 
	 * @param language
	 *            the new language
	 */
	public void setLanguage(String language) {
		this.language = language;
	}

	/**
	 * Gets the reading level.
	 * 
	 * @return the reading level
	 */
	public Byte getReadingLevel() {
		return readingLevel;
	}

	/**
	 * Sets the reading level.
	 * 
	 * @param readingLevel
	 *            the new reading level
	 */
	public void setReadingLevel(Byte readingLevel) {
		this.readingLevel = readingLevel;
	}

	/**
	 * Gets the speaking level.
	 * 
	 * @return the speaking level
	 */
	public Byte getSpeakingLevel() {
		return speakingLevel;
	}

	/**
	 * Sets the speaking level.
	 * 
	 * @param speakingLevel
	 *            the new speaking level
	 */
	public void setSpeakingLevel(Byte speakingLevel) {
		this.speakingLevel = speakingLevel;
	}

	/**
	 * Gets the writing level.
	 * 
	 * @return the writing level
	 */
	public Byte getWritingLevel() {
		return writingLevel;
	}

	/**
	 * Sets the writing level.
	 * 
	 * @param writingLevel
	 *            the new writing level
	 */
	public void setWritingLevel(Byte writingLevel) {
		this.writingLevel = writingLevel;
	}

	/**
	 * Gets the cv data.
	 * 
	 * @return the cv data
	 */
	@ManyToOne
	public CvData getCvData() {
		return cvData;
	}

	/**
	 * Sets the cv data.
	 * 
	 * @param cvData
	 *            the new cv data
	 */
	public void setCvData(CvData cvData) {
		this.cvData = cvData;
	}

}
